#include <iostream>
#include <string>
#include <cmath>
using namespace std;

bool isprime(int x)
{
    if (x < 2) return false;
    for (int i = 2; i <= sqrt(x); i++)
    {
        if (x % i == 0)
            return false;
    }
    return true;
}

int main()
{
    string s;
    cin >> s;

    int maxn = 0, minn = 100;
    int hash[26] = { 0 };
    for (auto ch : s)
    {
        hash[ch - 'a']++;
    }
    for (int i = 0; i < 26; i++)
    {
        if (hash[i])
        {
            minn = min(minn, hash[i]);
            maxn = max(maxn, hash[i]);
        }
    }

    if (isprime(maxn - minn))
    {
        cout << "Lucky Word" << endl;
        cout << maxn - minn << endl;
    }
    else
    {
        cout << "No Answer" << endl;
        cout << 0 << endl;
    }
    return 0;
}